package cn.monkey.family.data;

public interface Range<T extends Number> {
    T getMin();

    T getMax();

    static <T extends Number> Range<T> of(T min, T max) {
        DefaultRange<T> defaultRange = new DefaultRange<>();
        defaultRange.setMax(max);
        defaultRange.setMin(min);
        return defaultRange;
    }
}
